package com.youlai.boot.modules.category.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.category.model.Category;
import com.youlai.boot.modules.category.model.CategoryPageQuery;
import com.youlai.boot.modules.category.model.CategoryVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {
    Page<CategoryVO> getCategoryPage(Page<CategoryVO> page, @Param("query") CategoryPageQuery query);

    List<CategoryVO> getHomeCategoryList();
}
